package com.example.flutter_base_widget.plugin

import android.content.Context
import com.baidu.mapapi.map.MapView
import com.baidu.mapapi.map.TextureMapView
import io.flutter.plugin.common.BinaryMessenger
import io.flutter.plugin.common.StandardMessageCodec
import io.flutter.plugin.platform.PlatformView
import io.flutter.plugin.platform.PlatformViewFactory

class MyViewFactory(private val messager: BinaryMessenger, private val mapView: TextureMapView): PlatformViewFactory(StandardMessageCodec.INSTANCE) {

//    private val mmapview:MapView
//
//    init {
//        mmapview = mapView
//    }
    override fun create(context: Context, id: Int, o: Any?): PlatformView {
        return MyView(mapView)
    }


}